/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.server.dto;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DTO_EarthquakeBuildingDesign extends DTO_AbstractPersistentEntity {

	private static final long serialVersionUID = 6002035078882261018L;
	
	@Persistent private String designCode;
	@Persistent private String designLevel;
	@Persistent private Integer designYear;
	@Persistent private Double designBaseShear;
	@Persistent private String foundationType;
	@Persistent private String constructionQuality;
	@Persistent private Integer percentageContentsOnGround;
	
	// constants
	public static final String DESIGNCODE = "design code";
	public static final String DESIGNLEVEL = "design level";
	public static final String DESIGNYEAR = "design year";
	public static final String DESIGNBASESHEAR = "design base shear";
	public static final String FOUNDATIONTYPE = "foundation type";
	public static final String CONSTRUCTIONQUALITY = "construction quality";
	public static final String PERCENTAGECONTENTSONGROUND = "percentage contents on ground";
	
	public DTO_EarthquakeBuildingDesign()
	{
		
	}

	public String getConstructionQuality() {
		return constructionQuality;
	}

	public void setConstructionQuality(String constructionQuality) {
		this.constructionQuality = constructionQuality;
	}

	public Double getDesignBaseShear() {
		return designBaseShear;
	}

	public void setDesignBaseShear(Double designBaseShear) {
		this.designBaseShear = designBaseShear;
	}

	public String getDesignCode() {
		return designCode;
	}

	public void setDesignCode(String designCode) {
		this.designCode = designCode;
	}

	public String getDesignLevel() {
		return designLevel;
	}

	public void setDesignLevel(String designLevel) {
		this.designLevel = designLevel;
	}

	public Integer getDesignYear() {
		return designYear;
	}

	public void setDesignYear(Integer designYear) {
		this.designYear = designYear;
	}

	public String getFoundationType() {
		return foundationType;
	}

	public void setFoundationType(String foundationType) {
		this.foundationType = foundationType;
	}

	public Integer getPercentageContentsOnGround() {
		return percentageContentsOnGround;
	}

	public void setPercentageContentsOnGround(Integer percentageContentsOnGround) {
		this.percentageContentsOnGround = percentageContentsOnGround;
	}

	public String toString()
	{
		String str = "";
		str += "[earthquake-building-design";
		str += "[design-code="+this.designCode+"]";
		str += "[design-level="+this.designLevel+"]";
		str += "[design-year="+this.designYear+"]";
		str += "[design-base-shear="+this.designBaseShear+"]";
		str += "[foundation-type="+this.foundationType+"]";
		str += "[construction-quality="+this.constructionQuality+"]";
		str += "[percentage-contents-on-ground="+this.percentageContentsOnGround+"]";
		str += "]";
		return str;
	}	
	
}
